/*
============================================================================
 Name        : XmlEngineDebug.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : XmlEngineDebug.h - header file
============================================================================
*/

#include <e32svr.h>

#ifndef __XMLENGINEDEBUG_H__
#define __XMLENGINEDEBUG_H__

#ifdef _DEBUG

#define TRACE(x)			{RDebug::Print(_L(x)); }
#define TRACE1(x, y)        {RDebug::Print(_L(x), y); }
#define TRACE2(x, y, z)		{RDebug::Print(_L(x), y, z); }

#define LOG(x)				{iLog.Write(_L(x));}
#define LOG1(x, y)			{iLog.WriteFormat(_L(x),y);}
#define LOG2(x, y, z)		{iLog.WriteFormat(_L(x),y,z);}

#define LOG_START			{iLog.Connect(); iLog.CreateLog(_L("xmlengine"),_L("log.txt"), EFileLoggingModeOverwrite); }
#define LOG_END				{iLog.CloseLog();iLog.Close();}

#else

#define LOG(x)				{}
#define LOG1(x, y)			{}
#define LOG2(x, y, z)		{}

#define LOG_START			{}
#define LOG_END				{}


#endif

#endif // __XMLENGINEDEBUG_H__

// End of File
